/*
 * @Author: cyfqyb
 * @Date: 2023-11-09 10:24:27
 * @LastEditors: cyfqyb cy15770703229@163.com
 * @LastEditTime: 2023-11-09 10:24:45
 * @FilePath: \ImBackend\uno.config.ts
 * @Description: 介绍
 */
// uno.config.ts
import { defineConfig } from "unocss";
import presetUno from "@unocss/preset-uno";
import presetRemToPx from "@unocss/preset-rem-to-px";
export default defineConfig({
	// ...UnoCSS选项
	presets: [presetUno(), presetRemToPx({ baseFontSize: 4 }) as any],
	rules: [
		["dflex", { display: "flex", "justify-content": "center" }],
		["wh100", { width: "100%", height: "100%" }],
		[/^wh-(.+)$/, ([, num]) => ({ width: `${num}px`, height: `${num}px` })],
		["box-shadow", { "box-shadow": "0 2px 4px rgba(0,0,0,.25)" }],
	],
	shortcuts: [
		["wh-full", "w-full h-full"],
		["mlr-a", "ml-a mr-a"],
	],
});
